package com.atguigu.gulimall.product.service;

import com.atguigu.common.vo.SkuSendInfoVo;
import com.atguigu.gulimall.product.vo.SkuItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku??Ϣ
 *
 * @author wuyijun
 * @email 983665697@qq.com
 * @date 2021-11-29 10:29:34
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    PageUtils queryPageForCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    List<SkuInfoEntity> querySkuInfos();

    SkuItemVo getSkuItemForPage(Long skuId) throws ExecutionException, InterruptedException;

    void updatePicture(SkuSendInfoVo sendInfoVo);
}


